# -*- encoding: utf-8 -*-
##############################################################################
#
#    OpenERP, Open Source Management Solution
#    Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). All Rights Reserved
#    $Id$
#
#    This program is free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation, either version 3 of the License, or
#    (at your option) any later version.
#
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################

import wizard
import pooler
from tools.misc import UpdateableStr,UpdateableDict
import time
import operator
from osv import osv, fields
from osv.orm import intersect
import tools.sql
from tools import config
from tools.translate import _
from mx import DateTime

class wizard_print_workinprogresslist_report(wizard.interface):
#    def _open_windows_ar_daily(self, cr, uid, data, context):
#        value = {
#            'name': 'AR Period: '+time.strftime('%B %d, %Y'),
#            'view_type': 'form',
#            'view_mode': 'tree,form',
#            'res_model': 'kderp.reports.account.receivable.summary.daily',
#            'limit':25,
#            'type': 'ir.actions.act_window'
#        }
#        return value
    states = {
        'init': {
            'actions': [],
            'result': {
                'type': 'print',
                'report': 'kderp.report.work.in.progress.list.pdf.hidden',
                'rml' : '',
                'state': 'end'
                },
        },
    }
wizard_print_workinprogresslist_report('jreports_kderp_report_work_in_progress_list_pdf')